import cupk.abner.Approver;
import cupk.abner.ConcreteHandler.Congress;
import cupk.abner.ConcreteHandler.Director;
import cupk.abner.ConcreteHandler.President;
import cupk.abner.ConcreteHandler.VicePresident;
import cupk.abner.PurchaseRequest;

public class Main {
    public static void main(String[] args) {
        Approver director = new Director("张三");
        Approver vicePresident = new VicePresident("李四");
        Approver president = new President("王五");
        Approver congress = new Congress("赵六");
        director.setSuccessor(vicePresident);
        vicePresident.setSuccessor(president);
        president.setSuccessor(congress);
        PurchaseRequest request1 = new PurchaseRequest(10000, 001, "购买游戏道具");
        director.processRequest(request1);
        PurchaseRequest request2 = new PurchaseRequest(60000, 002, "购买皮肤");
        director.processRequest(request2);
        PurchaseRequest request3 = new PurchaseRequest(200000, 003, "购买比特币");
        director.processRequest(request3);
        PurchaseRequest request4 = new PurchaseRequest(800000, 004, "购买土地");
        director.processRequest(request4);
    }
}